package com.kaikeba.service;

import com.kaikeba.bean.BordUserInfo;
import com.kaikeba.bean.User;
import org.junit.Test;

import java.util.List;
import java.util.Map;

import static org.junit.Assert.*;

public class UserServiceTest {

    @Test
    public void console() {
        //[{data_size=1, data_day=1}]
        System.out.println(UserService.console());
    }

    @Test
    public void findAll() {
        System.out.println(UserService.findAll(true,0,5));
    }

    @Test
    public void findByUserPhone() {
        System.out.println(UserService.findByUserPhone("16666666666"));
    }

    @Test
    public void add() {
        User user = new User("小刚","15555555555","777777","111111111111111111");
        System.out.println(UserService.add(user));
    }

    @Test
    public void delete() {
        System.out.println(UserService.delete("15555555555"));
    }

    @Test
    public void findUserPhone(){
        System.out.println(UserService.findUserPhone());
    }

    @Test
    public void getRank(){
        System.out.println(UserService.getRank());
    }

    @Test
    public void getRankByYear(){
        System.out.println(UserService.getRankByYear());
    }

    @Test
    public void getRankByMonth(){
        System.out.println(UserService.getRankByMonth());
    }
}